
	<div class="pop-t"><div></div></div>
	<div class="pop-m">
		<div class="pop-inner">
            <h4><a id="pop_close" class="clos" href=""></a>添加新的组件</h4>
            <div class="add-float-content">
            	<?php if (empty($componentList)) {echo "没有可创建的组件";} else {?>
            	<form id="addForm" action="<?php echo URL('mgr/page_manager.doCreateComponent');?>" method="post"  name="changes-newlink">
            		<input type="hidden" name="page_id" value="<?php echo $page_id; ?>">
            		<div class="float-info">
            			<label>
            				组件名称：
            				<input name="data[title]" class="input-box pop-w6" vrel="_f|ne=m:请输入组件名称|sz=max:15,m:15个汉字以内" warntip="#nameTip" type="text" value="" style="width:140px;"/><span class="a-error hidden" id="nameTip"></span>
            			</label>
            		    
            			
            		</div>
            		
            		<div class="float-info">
            		<label>
            				组件类型：
            				<select name="data[component_id]">
								<?php
									foreach ($componentList as $aComponent) 
									{
										echo '<option value="' . $aComponent['component_id'].'">' . F('escape', $aComponent['name']) . '</option>';
									}
								?>
							</select>
            			</label>
            		</div>
                    <div class="float-button">
                    	<span class="float-button-y"><input type="submit" value="确定" /></span>
                    	<span class="float-button-n"><input id="pop_cancel" type="button" value="取消" /></span>
                    </div>
                </form>
                <?php }?>
            </div>
    	</div>
		<div class="pop-inner-bg"></div>
	</div>
	<div class="pop-b">
		<div></div>
	</div>
<script>
    new Validator({
        form : '#addForm'
    });
</script>